package org.glxy.shop;

import org.glxy.shop.entity.InventoryLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface InventoryLogRepository extends MongoRepository<InventoryLog, String> {
    // 根据商品ID查询库存日志
    Page<InventoryLog> findByProductId(String productId, Pageable pageable);
}